﻿using System;
namespace CRMS.Models
{
    public class OpenCourseInfo
    {
        private Teacher teacher;
        private TeacherCourse TC;
        private Course course;
        public OpenCourseInfo(Teacher t, TeacherCourse tc, Course c)
        {
            teacher = t;
            TC = tc;
            course = c;
        }
        public string CourseId
        {
            get
            {
                return TC.CourseId;
            }
        }
        public string CourseName
        {
            get
            {
                return course.CourseName;
            }
        }
        public char CourseCredit 
        {
            get
            {
                return course.CourseCredit;
            }
        }
        public string CourseCategory
        {
            get
            {
                return course.CourseCategory;
            }
        }
        public string DepartmentId
        {
            get
            {
                return course.DepartmentId;
            }
        }
        public string TeacherId 
        {
            get
            {
                return teacher.TeacherId;
            }
         }
        public string TeacherName 
        {
            get 
            { 
                return teacher.TeacherName; 
            }
        }
        public string TeacherSex
        {
            get
            {
                return teacher.TeacherSex;
            }
        }
        public string TeacherTitle
        {
            get
            {
                return teacher.TeacherTitle;
            }
        }
        public string TeacherIndicate
        {
            get
            {
                return teacher.TeacherIndicate;
            }
        }
        public int ClassroomId
        {
            get
            {
                return TC.ClassroomId;
            }
        }
        public string Weekday
        {
            get
            {
                return TC.Weekday;
            }
        }
        public string Period
        {
            get
            {
                return TC.Period;
            }
        }
    }
}
